From: Florian Müllner Date: Thu, 9 Apr 2015 16:38:17 +0000 (+0200) Subject: messageTray: Remove dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1389 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0141a2be9e22b4adef870896ddd647d5b08f552a;p=gnome-shell.git messageTray: Remove dead code The "clearable" concept is no longer relevant with the new design, not to mention that resident sources are no longer a thing either ... --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 393f43160..42c559fbb 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -753,10 +753,6 @@ const Source = new Lang.Class({ return this.count > 1; }, - get isClearable() { - return !this.isChat && !this.resident; - }, - countUpdated: function() { this.emit('count-updated'); }, @@ -929,8 +925,6 @@ const MessageTray = new Lang.Class({ this._notificationTimeoutId = 0; this._notificationRemoved = false; - this.clearableCount = 0; - Main.layoutManager.addChrome(this.actor, { affectsInputRegion: false }); Main.layoutManager.trackChrome(this._bannerBin, { affectsInputRegion: true }); @@ -1031,9 +1025,6 @@ const MessageTray = new Lang.Class({ destroyId: 0, }; - if (source.isClearable) - this.clearableCount++; - this._sources.set(source, obj); obj.notifyId = source.connect('notify', Lang.bind(this, this._onNotify)); @@ -1046,9 +1037,6 @@ const MessageTray = new Lang.Class({ let obj = this._sources.get(source); this._sources.delete(source); - if (source.isClearable) - this.clearableCount--; - source.disconnect(obj.notifyId); source.disconnect(obj.destroyId);